// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 43;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You see massive, reassuring walls in the distance. Walls means that you have found another of your fortresses. It is on the east side of the river, surrounded by mostly abandoned campsites and a few patches of struggling crops.";
	text2 = "This fort, like others you have seen, shows signs of neglect and disrepair. Many of the outbuildings have been abandoned, and the whole place needs supplies and repairs.";
	text3 = "At least the High Litha seems less chaotic and immediately rebellious than the other provinces. There are simply fewer people up here.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "Several clans have claimed land near the safety of Haven's fort. They work to supply your troops with food, supplies, and the occasional shipment of precious quicksilver.";
	text2 = "They work with Haven, but that makes them no more friendly than the other Lithans. The workers here are cordial, but you receive neither an invitation into their homes nor useful information.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "In the nest, you find bones, scraps of fur, and one single, precious copper piece.";
	text2 = "Of course, in this impoverished, icy land, a single coin might buy acres of prime snowy rock.";
	code =
		sf(100 + this_sec,3,1);
		change_coins(1,TRUE);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "This watchpost has recently been abandoned.";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The beasts dead, you search their nests and claim their treasure. You find a nice assortment of coinage and other barterable goods. There is also a flask of quicksilver beverage, doubtless stolen from some unfortunate caravan.";
	code =
		change_coins(58,TRUE);
		change_crafting(0,0,0,0,1);
	break;
	
begintalknode;
	tag = 14;
	condition = gf(143,13) == 0;
	text1 = "You find a group of scruffy soldiers patrolling the road. When you get close, you see with relief that they are Havenite soldiers! They are thrilled to see you and show you all appropriate courtesy.";
	text2 = "Their arms and armor are dirty and not well maintained, but they don't seem ashamed of it. You decide not to mention it. It can be very hard to keep things shiny out here on the edges of civilization.";
	text3 = "They tell you that [F5] is just down the road to the west, and your arrival was eagerly awaited.";
	code =
		sf(143,13,1);
	break;
	
begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a group of Lithan hunters camped by this fire. They are skinny, grim folk. The looks on their faces make you think that you will just be wordlessly turned away. Then they slide aside, making room on a log by their fire.";
	text3 = "You return to the Lithan camp. The hunters are no friendlier, but they make room by their fire again.";
	action = SET_TO_1 143 11;

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Join them.";
	text1 = "You sit with them. They hand you a portion of charred, undersalted venison and some sort of fermented Ro drink. You are as polite as possible about the whole thing.";
	text2 = "Eventually, one hunter chooses to speak for them. _We are hunters. Lots of hunting in the Litha. We hear that you hunt too, Haven._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Just leave.";
	text1 = "They look neither pleased nor disappointed. The open space on the log closes up behind you as you depart.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_What do you know about me?_";
	text1 = "_We are remote, but we are not ignorant. We Ro have to know everything about Haven. We're your vassals. You loom over us._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_What do you hunt?_";
	text1 = "_Food and pride. There are many beasts in the wilds. Some of them keep us alive in the old ways. Others give us glory._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = gf(143,16) == 0;
	question = "_Anything I can hunt?_";
	text1 = "_Yes. There is vicious prey. Too much for our little group. Lots of glory to share. Ice beasts to the south, among the rocks._";
	text2 = "They whisper to each other. _We were going to leave, but we can stay for a bit. See the hunting prowess of mighty Haven. The beasts to the south are proper prey. Will you kill them?_";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_I have better things to do._";
	text1 = "The hunters nod. There is suddenly an extra chill in the air. _Understood. Haven is too busy for the little games of the Ro. We thought you had our blood in you. Maybe not._ He rises. _I declare today's hunt done. Back to home and warmth._";
	text2 = "They give you a brusque farewell, pack up their gear, and are soon gone.";
	action = END_TALK;
	code =
		ro_faction(-2);
		violence(-1);
		cancel_out_fight(0,1);
	break;
	
begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Sure. I could use another trophy._";
	text1 = "They nod. _We would like to see that. We will hunt from here for a time. Show us the glory of Haven._ Soon, they bid you a polite farewell and return to their tents.";
	action = END_TALK;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(143,16) > 0;
	question = "_I just slew a few beasts in the rocks to the south._";
	text1 = "The hunters nod. _We saw. It was bravely done. The tales don't lie. You are a true hunter, and you have Ro blood in your veins. Others will hear of this._";
	text2 = "They give you a polite farewell, pack up their gear, and are soon gone.";
	action = END_TALK;
	code =
		ro_faction(2);
		violence(1);
		cancel_out_fight(0,1);
	break;

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I'll be going now._";
	text1 = "_You are welcome to return. They say you have the blood of the Ro in you. True? Perhaps. We'll have to see you hunt to know._";
	text2 = "They return to their tents.";
	action = END_TALK;
	
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "This clearing has been claimed by an assortment of beasts. They are all creatures of the cold, and this snowy clearing is a good base for them when they aren't hunting livestock (and people).";
	text2 = "Normally, they pace around and snarl at each other. When you come close, they set aside their conflicts and gather for the chance of fresh meat. They aren't foolish enough to attack, though.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Attack.";
	text1 = "You draw your blade and plunge into the crowd of snarling beasts. As you approach, a wild wind picks up filling the air with stinging shards of ice.";
	text2 = "As you deliver your first blow, you feel, strangely, in a way you can't quite articulate, like a child of the Ro.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Just leave.";
	text1 = "You turn and depart. The beasts return to snarling at each other and bickering over bones.";
	text2 = "As you retreat from the battle, you feel, in some strange way, ashamed.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;
	

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				